<!doctype html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/meta/meta.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/link/link.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/script/script.jsp" %>
    <script type="text/javascript" src="${path}/html/js/jquery.form.js"></script>
    <script type="text/javascript" src="${path}/html/js/js-jsp/common/select-plugin.js?v=1"></script>
    <script type="text/javascript" src="${path}/html/js/js-jsp/st/product/productOption.js?v=<%out.print(Math.random());%>"></script>
</head>
<body>
<div class="place">
    <span>当前位置：</span>
    <ul class="placeul">
        <li><a href="${path}/product/index.do">产品列表</a></li>
        <c:if test="${product.proId == null}">
            <li><a >添加产品</a></li>
        </c:if>
        <c:if test="${product.proId != null}">
            <li><a >修改产品</a></li>
        </c:if>
    </ul>
</div>

<form id="product_form" class="form" method="post" action="#">
    <div class="formbody">
        <div style="margin-top: -10px;"><span></span></div>
        <ul class="forminfo">
            <div class="formtitle"><span>产品信息</span></div>
            <li>
                <input type="hidden" name="proId" id="proId" value="${product.proId}"/>
                <input type="hidden"  id="companyId_" value="${DefaultCompany}"/>
                <input type="hidden" name="supId" id="supId_" value="${product.supId}" />
                <label style="text-align:right;">所属供应商：</label>
                <input class="easyui-combobox" id="supId" style="width:255px; height: 30px" editable='false'  data-options="required:true, prompt:'--请选择--'" missingMessage="供应商不能为空"  />
            </li>
            <li>
                <label style="text-align:right;">产品名称：</label>
                <input class="easyui-textbox" name="materialName" id="materialName" required="true" data-options="prompt:'请输入产品名称'" missingMessage="产品名称不能为空"  value="${product.materialName}" style="width:255px; height: 30px">
            </li>
            <li>
                <label style="text-align:right;">产品单价：</label>
                <input class="easyui-textbox" name="unitPrice" id="unitPrice" required="true" data-options="validType:['floatOrInt'],prompt:'请输入产品单价'"  value="${product.unitPrice}" style="width:255px; height: 30px">
            </li>
            <li>
                <label style="text-align:right;">计量单位：</label>
                <input class="easyui-textbox" name="meteringUnit" id="meteringUnit" required="true" data-options="prompt:'请输入计量单位'" value="${product.meteringUnit}"  style="width:255px; height: 30px">
            </li>
            <li>
                <label style="text-align:right;">规格型号：</label>
                <input class="easyui-textbox" type="text" name="standardType" id="standardType" required="true" data-options="prompt:'请输入产品型号'" value="${product.standardType}"  style="width:255px; height: 30px">
            </li>
            <li>
                <label style="text-align:right;">产品品牌：</label>
                <input class="easyui-textbox" name="brand" id="brand" data-options="prompt:'请输入产品品牌'"  value="${product.brand}" style="width:255px; height: 30px">
            </li>
            <li>
                <label style="text-align:right;">技术参数：</label>
                <input class="easyui-textbox" name="technicalParameter" id="technicalParameter" data-options="prompt:'请输入技术参数'"  value="${product.technicalParameter}" style="width:255px; height: 30px">
            </li>
            <li>
                <label style="text-align:right;">产品属性：</label>
                <input class="easyui-textbox" type="text" name="characterization" id="characterization" data-options="prompt:'请输入产品属性'" value="${product.characterization}"  style="width:255px; height: 30px">
            </li>
            <li>
                <label style="text-align:right;">详细说明：</label>
                <input class="easyui-textbox" name="detail" id="detail"  data-options="multiline:true, validType:'length[1,200]',prompt:'请输入详细说明'" value="${product.detail}"  style="width:255px; height: 100px">
        </ul>
    </div>
</form>
<div class="formbody" style="margin-left: 120px">
    <a id="optionProduct" class="easyui-linkbutton c1" style="width:100px; height: 35px">保存</a>
    &nbsp;&nbsp;&nbsp;
    <a href="${path}/product/index.do" class="easyui-linkbutton c1" style="width:100px; height: 35px">取消</a>
</div>
</body>
</html>